package com.ego.seckill.client;

import com.ego.pojo.Stock;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author Ares
 * @date 2020-12-17
 */
@FeignClient("ItemService")
@RequestMapping("/goods")
public interface GoodsClient {

    @GetMapping("/stocks")
    ResponseEntity<List<Stock>> queryStockListByIds(@RequestParam("skuIdList") List<Long> skuIdList);
}
